import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:meePet/utils/ImageUtil.dart';
import 'package:meePet/utils/SizeFit.dart';
import 'package:meePet/ui/SplashVM.dart';

class SplashPage extends StatelessWidget {
  SplashPage({Key? key}) : super(key: key);

  final SplashVM viewModel = Get.put(SplashVM());

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.black,
      appBar: null,
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            Image(
              image: AssetImage(ImageUtil.getImgWebp('bg_splash')),
              fit: BoxFit.cover,
              height: SizeFit.screenHeight,
              width: SizeFit.screenWidth,
            )
          ],
        ),
      ),
    );
  }
}
